export function formatDate () {
  const showDay = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
  const time = new Date()
  const year = time.getFullYear()
  let month = time.getMonth()
  let date = time.getDate()
  const day = time.getDay()
  /* eslint-disable */
  month < 10 ? month = '0' + month : month
  month = month + 1
  date < 10 ? date = '0' + date : date
  const str = '今天是' + year + '年' + month + '月' + date + '日' + ' ' + showDay[day]
  return str
}
